#pragma once
#include <windows.h>

bool RGB24_TO_YUV420(BYTE* RgbBuf,UINT nWidth,UINT nHeight,BYTE* yuvBuf,unsigned long *len);

void YUV420_TO_RGB24 (BYTE *buffer,BYTE *pbR,BYTE *pbG,BYTE *pbB);